-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Add MAX_LEN_UTF8 and MAX_LEN_UTF16 Constants
#120580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MAX_LEN_UTF8 and MAX_LEN_UTF16 Constants
#120580
Conversation
MAX_LEN_UTF8 and MAX_LEN_UTF16 constantsMAX_LEN_UTF8 and MAX_LEN_UTF16 Constants
|
r? @m-ou-se (rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
☔ The latest upstream changes (presumably #121295) made this pull request unmergeable. Please resolve the merge conflicts. |
|
In the tracking issue, please include a mention that when stabilizing this we should adjust the documentation of https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf8 to use it. |
|
We briefly discussed this in the libs-api meeting and are happy to add these as unstable. |
|
Tracking issue created. Will finish the remaining things later today. |
177bcc3 to
ae30dc9
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
f51dde5 to
bee9b68
Compare
|
@rustbot ready |
9c2fb6c to
7786d80
Compare
This comment has been minimized.
This comment has been minimized.
7b97537 to
d797ebe
Compare
|
@rustbot ready |
4ccc716 to
eec49bb
Compare
|
@bors r+ |
This pull request adds the
MAX_LEN_UTF8andMAX_LEN_UTF16constants as per #45795, gated behind thechar_max_lenfeature.The constants are currently applied in the
alloc,coreandstdlibraries.